﻿app.controller('PointsCtrl', ['$scope', '$http', '$filter', 'httpPlus', function ($scope, $http, $filter,httpPlus) {

    $scope.btns = [
     {
         "name": "收入",
         "id": 1
     },
      {
          "name": "支出",
          "id": 2
      }
    ]
    $scope.currBtn = $scope.btns[0];
    $scope.btnCurrBtn_click = function (data) {
        $scope.currBtn = data;
    }
    httpPlus
        .RRRApi('points/details')
        .then(function (data) {
            console.log(data);
            $scope.pointIncomeDetails = data.pointIncome;
            $scope.pointChargeDetails = data.pointCharge;
        });
}]);